home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4140 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: troll.powertech.no!usenet
  2. From: leo@powertech.no (Eivind Nordseth)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Shared library open and close functions
  5. Date: 17 Feb 96 19:14:18 +0100
  6. Organization: Ultima Thule Software
  7. Message-ID: <881.6621T1154T915@powertech.no>
  8. References: <510.6619T1238T1638@Th0r.foo.bar>
  9. NNTP-Posting-Host: gw7-3.oslo.no.powertech.net
  10. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  11.  
  12.  
  13. In article <510.6619T1238T1638@Th0r.foo.bar> christon (Christopher Naas) wrote:
  14. >I want one function that is called the first time the library is opened, and
  15. >one function that is called when the library is closed by the last user and
  16. >it is flushed from memory.
  17.  
  18. If you use the libinit stuff for your library which comes with SAS/C and
  19. one global section is it quite straight forward to add this.
  20.  
  21. Just make an __UserLibInit() and an __UserLibCleanup() function to your
  22. code.
  23.  
  24. It's a little bit harder when you don't use one global section. Then must
  25. you make your own version of libint.c. 
  26.  
  27. -- 
  28. |  Eivind 'Leo' Nordseth  |  IRC #amiga: Leo   |   leo@powertech.no  |
  29. +-------------------------+--------------------+---------------------+
  30. |      THOR 2.2 Team      |  http://www.cs.uit.no/~kjelli/thor.html  |
  31.  
  32. DAMN IT, I GOTTA GET OUTTA HERE!
  33.  
  34.